<?php


namespace yuankezhan\yiiTableWidget;


use yii\helpers\Html;

class Row
{
    public $rowData;
    public $commands = null;
    public $attributes = [];
    public $permissionArr = [];
    /**
     * @param $rowData
     * @param null $commands [TableButton, TableButton] TableButton 类的数组
     * @param array $attributes
     * @param array $permissionArr
     * @return Row
     */
    public static function set($rowData, $commands = null, $attributes = [], $permissionArr = [])
    {
        return new static($rowData, $commands, $attributes, $permissionArr);
    }

    public function __construct($rowData, $commands, $attributes, $permissionArr)
    {
        $this->rowData = $rowData;
        $this->commands = $commands;
        $this->attributes = $attributes;
        $this->permissionArr = $permissionArr;
    }

}